package org.example.iocdemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/log")
public class LoggerController {
    @RequestMapping("/printLog")
    public String printLog() {
        System.out.println("打印日志");
        log.info("=========我是日志对象打印的日志========");
        return "success";

    }
}
